<template>
    <div>
      <render-table
        ref="table"
        :apiUrl="orderDetail"
        :tableColumn="searchReset.type == '工程类' ? projectTableColumn : otherTableColumn"
        :otherConfig="otherConfig"
        :setupConfig="setupConfig"
        :searchReset="searchReset"
      >
      </render-table>
    </div>
  </template>
      
      <script>
  import {
    orderDetail,
  } from "@/api/order/api";
  
  export default {
    props:{
        searchReset: { // 搜索条件默认值重置值
              type: Object
          },
    },
    name: "material-type",
    data() {
      return {
        setupConfig: {
            width:0
        },
        dict: {},
        otherConfig: {
          list: "data",
        },
        orderDetail,
        projectTableColumn: [
          { prop: "maintenanceItems", label: "维修项目" },
          { prop: "content", label: "内容描述" },
          { prop: "unit", label: "单位" },
          { prop: "remakeInfo", label: "备注" },
        ],
        otherTableColumn: [
          { prop: "produceName", label: "产品名称" },
          { prop: "unit", label: "单位" },
          { prop: "number", label: "数量" },
          { prop: "remakeInfo", label: "备注" },
        ],
      };
    },
    created() {},
    methods: {
    },
  };
  </script>
      